@import url("./font.css");
html {
  /* color: #333333; */
  /* background: #fff; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}
body,
button,
input,
select,
textarea {
  font: 12px/1.5, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

::selection {
  background: #e83015;
  color: #fff;
  text-shadow: none;
}

.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100001;
}

body {
  overflow: overlay;
}

body::-webkit-scrollbar{
  display: none;
}

h1 {
  /* font-family: "NipponColors"; */
  text-align: right;
  color: #ea0031;
  font-weight: normal;
  font-size: 2rem;
}

@keyframes turnZ {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

.navbar {
  display: flex;
  width: 100%;
  justify-content: center;
  background: transparent;
  position: fixed;
  padding-top: 10px;
  animation-name: turnZ;
  animation-duration: 15s;
  animation-iteration-count: infinite;
}

.enterbutton {
  width: 100px;
  height: 100px;
  display: block;
  background: url("../images/logo.webp") no-repeat;
  background-size: 100%;
  background-position: 0 0;
}

/* 整个列表 */
.chinese-colors-list {

}

/* 每一种颜色块 */
.chinese-colors-list figure {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  min-width: 100px;
  height: 15vh;
  height: 25vh;
  box-sizing: border-box;
  letter-spacing: 0.05rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 颜色名、拼音、颜色值 */
.c-cid,
.c-pinyin,
.c-cname,
.c-chex,
.c-crgb,
.c-ccmyk {
  flex: 1;
  display: flex;
  padding-right: 1rem;
  align-items: center;
  font-display: swap;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei,Arial,sans-serif;
  cursor: pointer;
}

.c-pinyin {
  text-transform: capitalize;
}

.c-cname {
  font-display: swap;
  font-family: "造字工房刻宋常规体", Courier, monospace;
  font-size: 2em;
}

/* 小于 320px 时 */
@media only screen and (max-width: 320px) {
  figure {
  }
  .c-cid {
  }
  .c-cname {
    font-weight: 300;
    font-size: 1.5rem;
  }
  .c-pinyin {
    font-weight: 200;
    font-size: 1.5rem;
  }
  .c-chex {
  }
  .c-crgb {
  }
  .c-ccmyk {
  }
}

/* 320px — 480px：移动设备 */
@media screen and (min-width: 320px) and (max-width: 480px) {
  figure {
  }
  .c-cid {
  }
  .c-cname {
    font-weight: 400;
    font-size: 2rem;
  }
  .c-pinyin {
    font-weight: 400;
    font-size: 1.5rem;
  }
  .c-chex {
  }
  .c-crgb {
  }
  .c-ccmyk {
  }
}

/* 481px — 768px：iPad，平板电脑, 我的笔记本 1/2 屏 */
@media screen and (min-width: 481px) and (max-width: 768px) {
  figure {
  }
  .c-cid {
    font-size: 1.2rem;
  }
  .c-cname {
    font-weight: 400;
    font-size: 2rem;
  }
  .c-pinyin {
    font-weight: 400;
    font-size: 2rem;
  }
  .c-chex {
    font-size: 1.2rem;
  }
  .c-crgb {
    font-size: 1.2rem;
  }
  .c-ccmyk {
    font-size: 1.2rem;
  }
}

/* 769px — 1024px：小屏幕，笔记本电脑，(我的 iPad Air5 竖屏：1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  figure {
  }
  .c-cid {
    font-size: 2rem;
  }
  .c-cname {
    font-weight: 300;
    font-size: 3rem;
  }
  .c-pinyin {
    font-weight: 200;
    font-size: 3rem;
  }
  .c-chex {
    font-size: 2rem;
  }
  .c-crgb {
    font-size: 2rem;
  }
  .c-ccmyk {
    font-size: 2rem;
  }
}

/* 1025px — 1200px：台式机，大屏幕(我的 iPad Air5 横屏：1180px) */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
  figure {
  }
  .c-cid {
    font-size: 1.2rem;
  }
  .c-cname {
    font-weight: 300;
    font-size: 2rem;
  }
  .c-pinyin {
    font-weight: 200;
    font-size: 2rem;
  }
  .c-chex {
    font-size: 1.2rem;
  }
  .c-crgb {
    font-size: 1.2rem;
  }
  .c-ccmyk {
    font-size: 1.2rem;
  }
}

/* 1201px 及以上：超大屏幕电视(我的笔记本全屏) */
@media screen and (min-width: 1201px) {
  figure {
  }
  .c-cid {
    font-size: 1.2rem;
  }
  .c-cname {
    font-weight: 300;
    font-size: 2rem;
  }
  .c-pinyin {
    font-size: 2rem;
    font-weight: 200;
  }
  .c-chex {
    font-size: 1.2rem;
  }
  .c-crgb {
    font-size: 1.2rem;
  }
  .c-ccmyk {
    font-size: 1.2rem;
  }
}

/*滚动指示器*/
body {
  position: relative;
}
.indicator {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(to right top, teal 50%, transparent 50%) no-repeat;
  background-size: 100% calc(100% - 100vh);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: darken;
}
.indicator::after {
  content: "";
  position: fixed;
  top: 3px;
  bottom: 0;
  right: 0;
  left: 0;
  background: #fff;
  z-index: 1;
}
